<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:580px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">Fechar</span>Detalhes da Oferta</h3>
	<div style="overflow-x:hidden;padding:10px;">
	<table width="96%" align="center" class="coupons-table">
		<tr><td width="80"><b>Titulo:</b></td><td><b>{$team['title']}</b></td></tr>
		<tr><td><b>Validade:</b></td><td>inicio:<b>${date('d-m-Y',$team['begin_time'])}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ate :<b>${date('d-m-Y',$team['end_time'])}</b></td></tr>

		<tr><td><b>Status:</b></td><td><span style="color:#F00;font-weight:bold;">${state_explain($team)}</span><!--{if $team['close_time']&&$team['now_number']>=$team['min_number']&&$team['delivery']!='express'}-->&nbsp;&nbsp;<span style="color:#F8C;font-weight:bold;"><!--{if ($team['teamcoupon'])}-->&lt;{$INI['system']['couponname']} Não finalizado&gt;<!--{else}-->&lt;{$INI['system']['couponname']} Foi emitido&gt;<!--{/if}--></span><!--{/if}--></td></tr>
		<tr><td><b>Quantidade:</b></td><td>Minimo: {$team['min_number']}&nbsp;&nbsp;&nbsp;&nbsp;Maximo: ${$team['max_number']==0?'Sem Limite':$team['max_number']}</td></tr>
		<tr><td><b>Preço:</b></td><td>Preço de mercado: R$ <b>${moneyit3($team['market_price'])}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Preço do item: R$ <b>${moneyit3($team['team_price'])}</b>&nbsp;</td></tr>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>Situação:</b></td><td><b>{$team['now_number']}</b>&nbsp;Total&nbsp;<b>{$paycount}</b>&nbsp;Pessoas compraram&nbsp;<b>{$buycount}</b>&nbsp;vezes comprada
		</td></tr>
		<tr><td><b>Pagamento:</b></td><td>Pagamentos online: R$ <b>${moneyit3($onlinepay)}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saldo de pagamentos: R$ <b>${moneyit3($creditpay)}</b></td></tr>
		<tr><td><b>Saldo:</b></td><td>Total de pagamentos: R$ <b>${moneyit3($onlinepay+$creditpay)}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aprovados: R$ <b>${moneyit3($cardpay)}</b></td></tr>
	<!--{if $team['needline']}-->
		<tr><th colspan="2"><hr/></th></td>
		<tr><td colspan="2">
			<button style="padding:0;" id="dialog_subscribe_button_id" onclick="if(confirm('Envio de e-mails em processo, por favor seja paciente, aceita realizar?')){this.disabled=true;return X.misc.noticenext({$team['id']},0);}">&nbsp; Enviar Oferta &nbsp;(<span id="dialog_subscribe_count_id">0</span>/{$subcount})</button>&nbsp;
			<!--{if $team['noticesms']}--><button id="dialog_sms_button_id" onclick="if(confirm('Processo de envio de mensagens de texto, seja paciente, aceita realizar?')){this.disabled=true;return X.misc.noticesms({$team['id']},0);}">Text messages sent in coupons&nbsp;(<span id="dialog_sms_count_id">0</span>/{$couponcount})</button>&nbsp;<!--{/if}-->
			<!--{if $team['teamcoupon']}--><button onclick="this.disabled=true;return X.manage.teamcoupon({$team['id']});">Enviar o código do cupom automaticamente&nbsp;({$couponcount}/{$buycount})</button>&nbsp;<!--{/if}-->
		</td></tr>
	<!--{/if}-->
	</table>
	</div>
</div>
